package org.sxp;

import org.apache.commons.lang.StringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableTransactionManagement
@Import(StringUtils.class)
@ServletComponentScan
@SpringBootApplication(
		scanBasePackages = {"org.sxp.common", "org.sxp.datax","com.xxl"},
		exclude = {SecurityAutoConfiguration.class, DataSourceAutoConfiguration.class})
@EnableCaching
@EnableScheduling
public class PPActuatorApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(PPActuatorApplication.class, args);
	}
}
